package com.nebula.service;

import com.nebula.dto.OrdersPageQueryDTO;
import com.nebula.dto.OrdersPaymentDTO;
import com.nebula.dto.OrdersSubmitDTO;
import com.nebula.entity.Orders;
import com.nebula.result.PageResult;
import com.nebula.vo.OrderPaymentVO;
import com.nebula.vo.OrderStatisticsVO;
import com.nebula.vo.OrderSubmitVO;
import com.nebula.vo.OrderVO;

public interface OrderService {
    OrderSubmitVO submitOrder(OrdersSubmitDTO ordersSubmitDTO);

    /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return
     */
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

    PageResult historyPageQuery(OrdersPageQueryDTO ordersPageQueryDTO);

    OrderVO details(Long id);

    void userCancelById(Long id);

    void repetition(Long id);

    PageResult conditionSearch(OrdersPageQueryDTO ordersPageQueryDTO);

    OrderStatisticsVO statistics();

    void confirm(Orders orders);

    void rejection(Orders orders);

    void cancel(Orders orders);

    void delivery(Long id);

    void complete(Long id);

    void reminder(Long id);
}
